package com.edu.entity;

import java.util.List;

/**
 * @author:yj
 * @Date:2024/10/10-11:40
 * @porjectName:Demo1
 */
public class Press {
    private int pId;
    private String pName;
    private String pCity;
    private List<Book> books;
    private List<Writer> writer;

    public List<Writer> getWriter() {
        return writer;
    }

    public void setWriter(List<Writer> writer) {
        this.writer = writer;
    }

    public List<Book> getBooks() {
        return books;
    }

    public void setBooks(List<Book> books) {
        this.books = books;
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getpCity() {
        return pCity;
    }

    public void setpCity(String pCity) {
        this.pCity = pCity;
    }

    public Press() {
    }

    @Override
    public String toString() {
        return "Press{" +
                "pId=" + pId +
                ", pName='" + pName + '\'' +
                ", pCity='" + pCity + '\'' +
                '}';
    }

}
